package com.sls.game.dao;

import com.sls.game.page.Pagination;
import com.sls.game.pojo.SupplyRuleInfo;
import com.sls.game.querybean.SupplyRuleQuery;

/**
 * 
 * @description 游戏供货规则DAO
 * @author Wangxuegang
 * @date 2012-10-12
 * 
 */
public interface SupplyRuleDAO {

	/**
	 * 根据商品编号，单条记录查询
	 * 
	 * @param goodsId
	 * @return
	 */
	public SupplyRuleInfo queryRecordBygoodsId(String goodsId);
	
	/**
	 * 根据id，单条记录查询
	 * 
	 * @param goodsId
	 * @return
	 */
	public SupplyRuleInfo queryRecordById(String id);

	/**
	 * 新增
	 * 
	 * @param supplyRuleInfo
	 */
	public void insert(SupplyRuleInfo supplyRuleInfo);

	/**
	 * 修改
	 * 
	 * @param supplyRuleInfo
	 */
	public void update(SupplyRuleInfo supplyRuleInfo);

	/**
	 * 分页查询
	 * 
	 * @param supplyRuleQuery
	 * @return
	 */
	public Pagination<SupplyRuleInfo> querySupplyRule(
			SupplyRuleQuery supplyRuleQuery);
}
